﻿using System;
using System.Data.Entity;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;

using ASC.DB;

namespace ASC.Models
{

    public class ChannelModel
    {
        public Channel Channel { get; set; }
        public ChannelAddress ChannelAddress { get; set; }
        public List<ChannelType> ChannelTypes { get; set; }
        public IEnumerable<Channel> AvailableChannels { get; set; }
        public IEnumerable<Channel> PlusChannels { get; set; }
        public IEnumerable<Channel> MinusChannels { get; set; }
    }


}

namespace ASC.DB
{
    [MetadataType(typeof(ChannelMetadata))]
    public partial class Channel
    {
        public class ChannelMetadata
        {
            [Required]
            public string Name { get; set; }

        }
    }

    
}